package com.hippo.provider.controller.wechat;

import com.hippo.core.pojo.vo.result.BaseResult;
import com.hippo.provider.service.WechatLoginService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName WechatLogincontroller
 * @Description TODO 微信登录相关接口
 * @Author tangxl
 * @create 2023-04-03 18:46
 **/
@Tag(name = "微信登录相关接口", description = "微信登录相关接口")
@RestController
@RequestMapping("/wechat")
public class WechatLogincontroller {

    @Resource
    private WechatLoginService wechatLoginService;

    @Operation(summary = "获取OpenId接口")
    @GetMapping(value = "/getOpenId")
    public BaseResult getOpenId(@RequestParam String code) {
        return wechatLoginService.getOpenId(code);
    }

}
